<!-- Created by Administrator on 2016/12/2. -->
<%@ page contentType="text/html; charset=UTF-8" language="java" %>
<%@page isELIgnored="false" %>
<!DOCTYPE html>
<html>
<head>
    <title>周结登录</title>
    <%@include file="common/tag.jsp"%>
    <%@include file="common/head.jsp"%>
</head>
<body>
<%@include file="common/navbar.jsp"%>
<div class="container">
    <div class="row clearfix">
        <div class="col-md-4 column">
        </div>
        <div class="col-md-4 column">
            <form role="form" id="loginForm">
                <div class="form-group">
                    <label for="userName">用户名</label><input class="form-control" id="userName" type="email" />
                    <span id="userNameWarning" class="glyphicon glyphicon-remove" style="color: rgb(255, 0, 1);"></span>
                </div>
                <div class="form-group">
                    <label for="pwd">密码</label><input class="form-control" id="pwd" type="password" />
                    <span id="pwdWarning" class="glyphicon glyphicon-remove" style="color: rgb(255, 0, 1);"></span>
                </div>

                <%--<div class="checkbox">--%>
                    <%--<label><input type="checkbox" id="doSave" />记住密码</label>--%>
                <%--</div>--%>
                <div align="center"><button type="button" class="btn btn-default btn" id="submit_btn">登录</button></div>

            </form>
        </div>
        <div class="col-md-4 column">
        </div>
    </div>
</div>

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="/resourses/js/jquery.min.js"></script>
<%--<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>--%>
<%--jQuery 操作cookie插件--%>
<script src="http://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.js"></script>
<!-- 包括所有已编译的插件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="/resourses/js/portal.js" type="application/javascript"></script>
<script type="application/javascript">
    $(document).ready(function () {
        $("#userNameWarning").css("visibility","hidden");
        $("#pwdWarning").css("visibility","hidden");

        $("#submit_btn").click(function () {
            $("#userNameWarning").css("visibility","hidden");
            $("#pwdWarning").css("visibility","hidden");
            portal.login.init({
                userName : $("#userName").val(),
                pwd : $("#pwd").val(),
                doSave : $("#doSave").val()
            });
        });
    });
</script>
</body>
</html>